from flask import Flask

app = Flask(__name__)
app.secret_key = '1w312'

@app.route('/x2', methods=['GET', 'POST'])
def x2():
    return "x2"


if __name__ == '__main__':
    app.run()
"""
请求到来时
    1. 执行 app.__call__
    2. 调用 app.wsgi_app 方法
"""